package com.mf.all.entity.req.basic;

import java.io.Serial;

import com.mf.all.groups.GroupsAddInterface;
import com.mf.all.groups.GroupsUpdateInterface;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 系统全局设置提交
 *
 * @date 2025-04-02 22:36:48
 */
@Data
public class ReqSet implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @NotNull(message = "id不能为空", groups = {GroupsUpdateInterface.class})
    @Null(message = "id必须为空", groups = {GroupsAddInterface.class})
    private Integer id;
    @Schema(description = "设置描述")
    private String setMark;
    @Schema(description = "设置Key")
    @NotBlank(message = "设置Key不能为空", groups = {GroupsAddInterface.class, GroupsUpdateInterface.class})
    private String setKey;
    @Schema(description = "设置内容")
    @NotBlank(message = "设置内容不能为空", groups = {GroupsAddInterface.class, GroupsUpdateInterface.class})
    private String setValue;
    @Schema(description = "备注")
    private String remark;
    @Schema(description = "显示顺序")
    private Integer showOrder;
}
